from common.logger_util import LogUtils

def assert_equal(items:list):
    try:
        assert items[0] == items[1]
        LogUtils.info(f"【断言成功】--->实际结果：{items[0]}，预期结果：{items[1]}")
    except AssertionError as e:
        LogUtils.error(f"【===》断言失败《===】--->实际结果：{items[0]}，预期结果：{items[1]}")
        raise AssertionError(f"断言失败，请查看详情！：{e}")

AssertionMap={
    'eq':assert_equal,
}